package com.nchu.ft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@TableName(value = "branch")
public class Branch {
    /**
     * 分支ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 分支名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 分支简介
     */
    @TableField(value = "intro")
    private String intro;

    /**
     * 所属总谱ID
     */
    @TableField(value = "genealogy_id")
    private Integer genealogyId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_INTRO = "intro";

    public static final String COL_GENEALOGY_ID = "genealogy_id";

    public static final String COL_CREATE_TIME = "create_time";
}